package com.yzk.train.member.service;

import com.yzk.train.member.mapper.TicketMapper;
import com.yzk.train.member.response.StationFlowResp;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowService {

    @Resource
    private TicketMapper ticketMapper;

    /**
     * 查询各车站总客流量
     * @return
     */
    public List<StationFlowResp> queryTotalFlow() {
        return ticketMapper.queryTotalFlow();
    }

    /**
     * 查询各车站当天客流量
     * @return
     */
    public List<StationFlowResp> queryTodayFlow() {
        return ticketMapper.queryTodayFlow();
    }

}
